package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件管理对象 sys_uploadfile
 *
 * @author ruoyi
 * @date 2024-03-20
 */
public class SysUploadfile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 上传文件id */
    private Long uploadid;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filepath;

    /** 文件基础路径 */
    @Excel(name = "文件基础路径")
    private String basepath;

    /** 来源 */
    @Excel(name = "来源")
    private String comfrom;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createtime;
    /** 扫描时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "扫描时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scantime;

    /** 所有者id */
    @Excel(name = "所有者id")
    private String ownerid;
    /** 文件大小 */
    @Excel(name = "文件大小")
    private BigDecimal filesize;
    /** 资源id */
    @Excel(name = "资源id")
    private Integer sourceid;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setUploadid(Long uploadid)
    {
        this.uploadid = uploadid;
    }

    public BigDecimal getFilesize() {
        return filesize;
    }

    public void setFilesize(BigDecimal filesize) {
        this.filesize = filesize;
    }

    public Long getUploadid()
    {
        return uploadid;
    }
    public void setFilepath(String filepath)
    {
        this.filepath = filepath;
    }

    public String getFilepath()
    {
        return filepath;
    }
    public void setBasepath(String basepath)
    {
        this.basepath = basepath;
    }

    public String getBasepath()
    {
        return basepath;
    }
    public void setComfrom(String comfrom)
    {
        this.comfrom = comfrom;
    }

    public String getComfrom()
    {
        return comfrom;
    }
    public void setScantime(Date scantime)
    {
        this.scantime = scantime;
    }

    public Date getScantime()
    {
        return scantime;
    }
    public void setOwnerid(String ownerid)
    {
        this.ownerid = ownerid;
    }

    public String getOwnerid()
    {
        return ownerid;
    }
    public void setSourceid(Integer sourceid)
    {
        this.sourceid = sourceid;
    }

    public Integer getSourceid()
    {
        return sourceid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uploadid", getUploadid())
            .append("filepath", getFilepath())
            .append("basepath", getBasepath())
            .append("comfrom", getComfrom())
            .append("createtime", getCreatetime())
            .append("scantime", getScantime())
            .append("ownerid", getOwnerid())
            .append("sourceid", getSourceid())
            .append("filesize", getFilesize())
            .toString();
    }
}
